package com.zdlog.wenjuan.enums;

import lombok.Getter;

/**
 * @program: sell
 * @PACKAGE_NAME: com.zdlog.sell.enums
 * @author: Kuaile
 * @create: 2018-01-31 16:35
 **/
@Getter
public enum ResultEnum {

    PARAM_ERROR(1, "参数不正确"),
    USER_NOT_USERNAME(2, "没有此用户"),
    USER_PASSWORD_ERROR(3, "密码错误"),
    USER_USERNAME_EXIST(4, "此用户名已注册"),
    LOGOUT_SUCCESS(26, "登出成功"),
    EMAIL_SEND_ERROR(27, "验证码发送失败"),
    EMAIL_EQUEST_ERROR(28, "验证码错误"),
    EMAIL_EXIST_ERROR(29, "邮箱已注册"),
    REGISTER_USER_ERROR(30, "注册失败"),
    ;

    private Integer code;

    private String message;


    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


}
